#!/bin/bash -ex

[ -e https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.3.1_build/ghidra_10.3.1_PUBLIC_20230614.zip ] || wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.3.1_build/ghidra_10.3.1_PUBLIC_20230614.zip
[ -e ghidra_10.3.1_PUBLIC ] || unzip ghidra_10.3.1_PUBLIC_20230614.zip
mkdir -p bin
cd bin
ln -s ../ghidra_9.1-BETA_DEV/ghidraRun ghidra
